<include file="../Public/head" />
<script type="text/javascript" src="../Public/js/jqueryui/js/jquery-ui-1.8.20.custom.min.js"></script>
        <script type="text/javascript" src="../Public/js/jqueryui/development-bundle/ui/i18n/jquery.ui.datepicker-zh-CN.js"></script>
        <link type="text/css" href="../Public/js/jqueryui/css/ui-lightness/jquery-ui-1.8.20.custom.css" rel="stylesheet" />
        <script>
            $(function(){
                    // Datepicker
                    $('#date').datepicker({
                            inline: true,
                            dateFormat: "yy-mm-dd" 
                    });
            });
        </script>

        <div class="add">
            <form method="post" action="{:U('doedit',array('id'=>$vo['id']))}">
            <table>
                
                <if condition="$place eq 1">
                    <tr>
                        <td>增加账户</td>
                        <td>
                            {$vo.in_name}
                        </td>
                    </tr>
                    
                </if>
                <if condition="$place eq 2">
                    <tr>
                        <td>转出账户</td>
                        <td>
                            {$vo.exp_name}
                        </td>
                    </tr>
                    <tr>
                    <td>转入账户</td>
                        <td>
                            {$vo.in_name}
                        </td>
                    </tr>
                </if>
                <if condition="$place eq 3">
                    <tr>
                        <td>转出账户</td>
                        <td>
                            {$vo.exp_name}
                        </td>
                    </tr>
                    <tr>
                        <td>消费种类</td>
                        <td>
                            {$vo.in_name}
                        </td>
                    </tr>
                </if>
                
                <tr>
                    <td>金额</td>
                    <td>
                        {$vo.number}
                    </td>
                </tr>
                <tr>
                    <td>备注</td>
                    <td>
                        <input type="text" value="{$vo.content}" name="content" />
                    </td>
                </tr>
                <tr>
                    <td>日期</td>
                    <td>
                        <input id="date" type="text" value="{$vo.time|date='Y-m-d',###}" name="time" readonly="" />
                    </td>
                </tr>
                <tr>
                    <td>操作账户</td>
                    <td>
                        <select name="smid">
                            <option value="0">无</option>
                            <foreach name="member" item="vo1">
                                <option value="{$vo1.id}" <if condition="$vo1[id] eq $vo[smid]">selected</if> >{$vo1.name}</option>
                            </foreach>
                        </select>
                    </td>
                </tr>
                <tr>
                    <td></td>
                    <td><input type="submit" value="编辑账目" /></td>
                </tr>
            </table>
            </form>
        </div>
<include file="../Public/foot" />